wayland: Improve implicit grab serial retrieval
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 13 Aug 2014 19:05:58 +0000 (21:05 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 26 Aug 2014 11:32:46 +0000 (13:32 +0200)
commit537ff9fcad30cbd838f7edcf4cd943bd32d0a218
tree11aa9a7f08d240ff1b590abe93e056faca192828
parent5b8641740bf43ca621d15ce15c0660eb2534221d
wayland: Improve implicit grab serial retrieval

_gdk_wayland_device_get_button_press_serial() has been replaced by
_gdk_wayland_device_get_implicit_grab_serial(), which takes a touch/pointer
event and figures out the relevant serial, and
_gdk_wayland_device_get_last_implicit_grab_serial() which returns
the most recent serial.

The button press serial was currently used when operating popping up
xdg_shell/surface popups and window menus, so this is now touch aware, of
some sort.

https://bugzilla.gnome.org/show_bug.cgi?id=734374
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkprivate-wayland.h
gdk/wayland/gdkwindow-wayland.c